// 应用常量配置
export const APP_CONFIG = {
  name: '我的应用',
  version: '1.0.0',
  description: '一个集网页收藏、个人收藏和常用软件管理于一体的综合平台',
} as const;

// 路由路径常量
export const ROUTES = {
  HOME: '/',
  BOOKMARK: '/bookmark',
  FAVORITES: '/favorites',
  SOFTWARE: '/software',
  BLOG: '/blog',
  NOT_FOUND: '/404',
} as const;

// 菜单配置
export const MENU_ITEMS = [
  {
    key: 'bookmark',
    label: '网页收藏',
    icon: 'BookOutlined',
    children: [
      { key: 'bookmark-1', label: '收藏夹 1' },
      { key: 'bookmark-2', label: '收藏夹 2' },
      { key: 'bookmark-3', label: '收藏夹 3' },
    ],
  },
  {
    key: 'favorites',
    label: '个人收藏',
    icon: 'StarOutlined',
    children: [
      { key: 'favorites-1', label: '我的收藏' },
      { key: 'favorites-2', label: '最近访问' },
      { key: 'favorites-3', label: '热门推荐' },
    ],
  },
  {
    key: 'software',
    label: '常用软件',
    icon: 'AppstoreOutlined',
    children: [
      { key: 'software-1', label: '开发工具' },
      { key: 'software-2', label: '办公软件' },
      { key: 'software-3', label: '娱乐软件' },
    ],
  },
  {
    key: 'blog',
    label: '个人博客',
    icon: 'EditOutlined',
    children: [
      { key: 'blog-all', label: '所有文章' },
      { key: 'blog-tech', label: '技术文章' },
      { key: 'blog-life', label: '生活随笔' },
    ],
  },
] as const;

// API 配置
export const API_CONFIG = {
  baseURL: '/api',
  timeout: 10000,
  retryCount: 3,
} as const;

// 本地存储键名
export const STORAGE_KEYS = {
  CURRENT_USER: 'currentUser',
  THEME: 'theme',
  LANGUAGE: 'language',
} as const;

// 分页配置
export const PAGINATION_CONFIG = {
  defaultPageSize: 10,
  pageSizeOptions: ['10', '20', '50', '100'],
  showSizeChanger: true,
  showQuickJumper: true,
} as const;
